#common
server_mode=0  #0为训练1为部署
productionMode=1 #0为生产1为测试环境
# default_ip='10.133.106.103'
# default_ip='10.17.157.87'
default_ip='0.0.0.0'
Train_default_port=30004
Eval_default_port=40001

#限制同时训练的模型个数（线程数量），推荐值为（2~3），2个预留内存空间为25GB，3个预留内存空间为35GB
train_threading_num = 3

default_threaded=True
default_classy_inputsize=224
default_detect_inputsize=416
default_devicelist=["cuda:0"]
#train
train_default_image_path="./tmp/default_pic.jpg"
train_default_epochs=50
train_default_batch_size=16
train_default_num_workers=2
train_default_classy_preweight="./model/resnet18.pth"
train_default_classy_costtime=1000
train_default_detect_preweight=None#"/root/AiStudio/HttpServer-v0.02/model/detect.weights"
train_default_detect_costtime=10000
train_default_savepath="D:\\MyData\\wangwh15\\PycharmProjects\\ai-platform-training\\"
train_default_datalabel="./tmp/default_label.txt"
train_default_model_cfg="./model/detect.cfg"
train_default_gpunum=2
train_default_timeout=1
Train_Msg_Add_0="Add task succeeded !"
Train_Msg_Add_10001="Node task initialization failed, unable to join new task!"
Train_Msg_Add_10002="Node task list is full, unable to join new task!"
Train_Msg_Add_10003="Error in The request parameter, unable to join the task"
Train_Msg_Add_10004="Task already exists, unable to join task list"
Train_Msg_Stop_0="Remove task succeeded !"
Train_Msg_Stop_20001="Task not in queue!"
Train_Msg_Stop_20002="Task is already stopped or terminated!"
Train_Msg_Stop_20003="Error in request parameters, unable to stop task!"
Train_Msg_Get_0="get task list succeeded !"
Eval_Msg_Add_202004="too many task,please wait for a minus"

#eval
eval_default_store_list="./model/pickle_db"
eval_default_classy_preweight=""
eval_default_classy_costMemory=1
eval_default_detect_preweight="./model/detect.weights"
eval_default_detect_costMemory=2
eval_default_model_cfg="./model/detect.cfg"
eval_default_maxtasknum=20
eval_default_threshold=0.4
Eval_Msg_Add_0="Add task succeeded !"
Eval_Msg_Add_10001="Node task initialization failed, unable to join new task!"
Eval_Msg_Add_10002="Node task list is full, unable to join new task!"
Eval_Msg_Add_10003="Error in The request parameter, unable to join the task"
Eval_Msg_Add_10004="Task already exists, unable to join task list"
Eval_Msg_Stop_0="Remove task succeeded !"
Eval_Msg_Stop_20001="Task not in queue!"
Eval_Msg_Stop_20002="Task is already stopped or terminated!"
Eval_Msg_Stop_20003="Error in request parameters, unable to stop task!"
Eval_Msg_Get_0="get task list succeeded !"
Eval_Msg_Predict_0="predict pic succeeded !"
Eval_Msg_Predict_30001="Task not in queue!"
Eval_Msg_Predict_30002="Error in request parameters, unable to run task!"
Eval_Msg_Sdk_0="get sdk weight succeeded !"
Eval_Msg_Sdk_40001="initialization failed, unable to get sdk weight!"
Eval_Msg_Sdk_40002="Error in request parameters, unable to get sdk weight!"


# machine status
Machine_Status_Succeeded = 'get machine status '
Machine_Status_Failed = 'error get machine status '

#特征提取
training_log_table = 't_training_log'
project_table = 'project'
material_table = 'material_info'
training_task_table = 'training_info'
training_model_table = 'training_model_data'
connect_tabel = 'data_connect_info'
FE_Msg_Add_0 ="Add featureengineer task succeeded !"
FE_Msg_Add_1 ="Add featureengineer task failed !"

#scp address
scp_use = 0  #0为同一台服务器不启用scp，1为不同机远程上传下载，启用scp
ips = "10.44.1.101"
port = 22
user = "maojianping"
password = "Sbtr.123456"

# #oss address uat
# app_domain='http://10.17.157.85:9000'
# auth_domain='http://10.17.157.85:9000'
# app_id='admin'
# app_key='admin123456'
# bucket='meicloud-ai-platform'

# mysql address uat
# mysql_host = '10.133.106.109'
# mysql_user = 'root'
# mysql_password = 'Dpai123456'
# mysql_db = 'eva_image_new'

mysql_host = '10.21.31.45'
mysql_user = 'aiplaform'
mysql_port = 30056
mysql_password = 'aiplaform@123'
mysql_db = 'aiplaform_new'

# mysql_host = '192.168.254.123'
# mysql_user = 'root'
# mysql_password = 'root'
# mysql_db = 'meicloud_eva_image_new'

#mysql address 生产
# mysql_host = '3306-W-T-AIPlat-PRD-01-MYC1.service.dcnh.consul'
# mysql_user = 'ai_plat'
# mysql_password = 'tP8kq5ryJ'
# mysql_db = 'ai_plat_new'
